#!/bin/bash
echo "" > result.dat
echo "#round	Indeg	PathLen	Cc" > result.dat
cat cyclon.out | grep -h 'current time:' | cut -d ':' -f 2 | tr -d ' ' > round.txt
cat cyclon.out | grep -h 'Average path length:' | cut -d ':' -f 2 | tr -d ' ' > pathlen.txt
cat cyclon.out | grep -h 'Clustering-coefficient:' | cut -d ':' -f 2 | tr -d ' ' > cc.txt
cat cyclon.out | grep -h 'Average in-degree:' | cut -d ':' -f 2 | tr -d ' '> ideg.txt
paste round.txt ideg.txt pathlen.txt cc.txt >> result.dat
rm round.txt pathlen.txt cc.txt ideg.txt
